package com.lz;

import com.lz.config.SpringConfig;
import com.lz.domain.Brand;
import com.lz.mapper.BrandMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BrandMapper mapper = ctx.getBean(BrandMapper.class);
        List<Brand> finderAll = mapper.finderAll();
        System.out.println(finderAll);
    }
}